diff options
Diffstat (limited to 'frontend/app/v2/[...path]/page.tsx')
| -rw-r--r-- | frontend/app/v2/[...path]/page.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/app/v2/[...path]/page.tsx b/frontend/app/v2/[...path]/page.tsx index 4af0167..3b4cbb8 100644 --- a/frontend/app/v2/[...path]/page.tsx +++ b/frontend/app/v2/[...path]/page.tsx | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | import { V2DirectoryView } from "@/components/v2/V2DirectoryView" | 1 | import { V2DirectoryView } from "@/components/v2/V2DirectoryView" |
| 2 | import { Drive_ls } from "@/lib/drive_server" | ||
| 2 | 3 | ||
| 3 | export default async function V2DirectoryPage({ | 4 | export default async function V2DirectoryPage({ |
| 4 | params, | 5 | params, |
| @@ -7,6 +8,7 @@ export default async function V2DirectoryPage({ | |||
| 7 | }) { | 8 | }) { |
| 8 | const { path: pathSegments } = await params | 9 | const { path: pathSegments } = await params |
| 9 | const currentPath = '/' + (pathSegments?.join('/') || '') | 10 | const currentPath = '/' + (pathSegments?.join('/') || '') |
| 10 | 11 | ||
| 11 | return <V2DirectoryView path={currentPath} /> | 12 | const files = await Drive_ls(currentPath, false) |
| 13 | return <V2DirectoryView path={currentPath} files={files} /> | ||
| 12 | } \ No newline at end of file | 14 | } \ No newline at end of file |
